import pyamf
from django.http import HttpResponse
from django.contrib.auth.models import User

from tasks.models import Task, Project, Category
from gtdapp.tasks.models import *

# pyamf.register_class(Task, 'tasks.models.Task')
# pyamf.register_class(Project, 'gtdapp.tasks.models.Project')
# pyamf.register_class(Category, 'gtdapp.tasks.models.Category')

def echo(request, data):
    return data

def get_all_tasks(request):
    return Task.objects.all()

def get_all_projects(request):
    return Project.objects.all()

def get_all_categories(request):
    return Category.objects.all()
 